<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/8/11
  Time: 20:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>添加班级信息</title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
</head>
<style>
    h1 {
        text-align: center;
    }
</style>
<body style="padding:100px;">
<h1>新增班级信息</h1>
<form>
    <div class="form-group"><label>用户名</label>
        <input type="text" class="form-control" placeholder="用户名" name="username" value="${list.username}">
    </div>
    <div class="form-group"><label>密码</label>
        <input type="text" class="form-control" placeholder="密码" name="password" value="${list.password}">
    </div>
    <div class="form-group"><label>电话</label>
        <input type="text" class="form-control" placeholder="电话" name="phone" value="${list.phone}">
    </div>
    <div class="form-group">
        <button class="btn btn-primary" id="btn_sub" type="submit" value="register">提交</button>
    </div>
</form>
</body>
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script>
    $("#btn_sub").on("click",function(){
        $.post("register", $("form").serialize() ,function( result ){
            console.log("hhhhh")
        },"json" );
    });
</script>

</html>



